package com.qing.cheng.dto;


public class SuccessRes extends ResponseMessage{
    private int code;
    private String msg;
    private Object data;

    private static final int SUCCESS_CODE = 200;
    private static final String SUCCESS_MSG = "SUCCESS";

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public static SuccessRes success(Object data){
        SuccessRes successRes = new SuccessRes();
        successRes.setData(data);
        return successRes;
    }

}
